using System.Collections.Generic;
using Newtonsoft.Json.Linq;

namespace JsonRpcGen.ParameterHandler
{
    internal class ArrayParamHandler : ParamHandler
    {
        public ArrayParamHandler(string name, JToken parameter, Dictionary<string, string> replacements):base(name,"")
        {
            var itemType = Global.GetTypeName(parameter["items"], "dummy", replacements);
            Type = itemType+"[]";
        }
    }
}